package cn.gxljc.technology.store_management.service.loginservice.modules;

import cn.gxljc.technology.store_management.entity.AccountPermissions;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 用于访问数据库数据
 * */
@Mapper
public interface LoginServiceMapper {

    @Insert("insert into account value (#{accountID},#{password})")
    boolean createAccount(@Param("accountID") long accountID, @Param("password") String password);

    @Select("select * from accountpermissions where accountID = #{accountID}")
    AccountPermissions findAuthority(long accountID);

}
